//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package 力扣.题库.未分类;

import java.util.ArrayList;
import java.util.List;

public class demo_3285 {
    public demo_3285() {
    }

    public static void main(String[] args) {
        int[] height = new int[]{1, 2, 3, 4, 5};
        int threshold = 2;
        List<Integer> list = stableMountains(height, threshold);
        System.out.println(list);
    }

    public static List<Integer> stableMountains(int[] height, int threshold) {
        if (height.length < 2) {
            return new ArrayList();
        } else {
            List<Integer> list = new ArrayList();

            for(int i = 1; i <= height.length - 1; ++i) {
                if (height[i - 1] > threshold) {
                    list.add(i);
                }
            }

            return list;
        }
    }
}
